using System;
using System.Collections.Generic;
using System.Text;

using Microsoft.SharePoint;

namespace SharePointHarvester.Events {
    public delegate void ContentTypeFoundHandler( object sender, ContentTypeFoundEventArg e );

    /// <summary>
    /// Event arg for when a content type is found
    /// </summary>
    public class ContentTypeFoundEventArg : EventArgs {
        /// <summary>
        /// The web that was found
        /// </summary>
        public SPWeb _spWeb;

        /// <summary>
        /// ContentType that has been found
        /// </summary>
        public SPContentType _contentType;

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="webFound"></param>
        /// <param name="contentType"></param>
        public ContentTypeFoundEventArg( SPWeb webFound, SPContentType contentType ) {
            _spWeb = webFound;
            _contentType = contentType;
        }
    }
}
